home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_527_a26E < prev    next >
Unknown  |  1994-07-14  |  5.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 25 00 00 09 6b 00 00 | 00 25 61 32 36 45 00 00 |.%...k..|.%a26E..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 0b 4e 65 77 44 6f | 63 75 6d 65 6e 74 00 00 |...NewDo|cument..|
|00000060| 06 00 00 00 00 00 a9 00 | 00 09 6c 00 00 00 a9 00 |........|..l.....|
|00000070| 00 00 14 03 c1 00 28 05 | 7e 00 ff 00 00 00 00 00 |......(.|~.......|
|00000080| 00 0f a8 00 00 00 00 4e | 1c 00 00 00 09 00 00 00 |.......N|........|
|00000090| 04 00 04 ff fc ff fa 00 | 04 00 04 ff fc ff fc 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 83 | 00 0b 40 10 6b 53 63 72 |........|..@.kScr|
|000000b0| 65 65 6e 41 50 49 2f 31 | 39 39 39 36 00 06 47 65 |eenAPI/1|9996..Ge|
|000000c0| 6e 65 76 61 00 00 4f 4f | 53 45 72 72 20 4e 65 77 |neva..OO|SErr New|
|000000d0| 44 6f 63 75 6d 65 6e 74 | 28 46 69 6c 65 52 65 63 |Document|(FileRec|
|000000e0| 48 6e 64 6c 20 2a 72 65 | 74 75 72 6e 48 6e 64 6c |Hndl *re|turnHndl|
|000000f0| 2c 20 4f 53 54 79 70 65 | 20 73 66 74 79 70 65 2c |, OSType| sftype,|
|00000100| 20 42 6f 6f 6c 65 61 6e | 20 69 6e 63 54 69 74 6c | Boolean| incTitl|
|00000110| 65 4e 75 6d 29 3b 00 00 | 00 06 00 00 00 00 00 7b |eNum);..|.......{|
|00000120| 00 00 09 6d 00 00 00 7b | 00 00 00 00 03 c1 00 14 |...m...{|........|
|00000130| 05 7e 00 ff 00 00 00 00 | 00 00 0f a8 00 00 00 00 |.~......|........|
|00000140| 4e 1d 00 00 00 09 00 00 | 00 04 00 04 ff fc ff fa |N.......|........|
|00000150| 00 04 00 04 ff fc ff fc | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 83 00 0b 40 14 6b 53 63 | 72 65 65 6e 4f 6e 65 4c |...@.kSc|reenOneL|
|00000170| 69 6e 65 2f 31 39 39 39 | 37 00 06 47 65 6e 65 76 |ine/1999|7..Genev|
|00000180| 61 00 00 1d 43 72 65 61 | 74 65 20 6e 65 77 20 41 |a...Crea|te new A|
|00000190| 70 70 73 54 6f 47 6f 20 | 64 6f 63 75 6d 65 6e 74 |ppsToGo |document|
|000001a0| 2e 00 00 00 06 00 00 00 | 00 00 44 00 00 09 6e 00 |........|..D...n.|
|000001b0| 00 00 44 00 00 00 00 02 | 6b 04 40 02 6c 01 00 00 |..D.....|k.@.l...|
|000001c0| 00 00 00 00 01 0f f1 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 0c 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 06 00 00 00 00 00 a4 00 |........|........|
|00000200| 00 09 6f 00 00 00 a4 00 | 00 00 00 02 6b 02 28 03 |..o.....|....k.(.|
|00000210| c1 00 ff 00 00 00 00 00 | 00 0f a8 00 00 00 00 4e |........|.......N|
|00000220| 16 00 00 00 09 00 00 00 | 04 00 04 ff fc ff fa 00 |........|........|
|00000230| 04 00 04 ff fc ff fc 00 | 00 00 00 00 00 00 00 83 |........|........|
|00000240| 00 0b 40 0b 6c 69 6e 6b | 73 2f 31 39 39 39 30 00 |..@.link|s/19990.|
|00000250| 06 4d 6f 6e 61 63 6f 00 | 00 39 61 32 34 44 2c 49 |.Monaco.|.9a24D,I|
|00000260| 6e 69 74 44 6f 63 75 6d | 65 6e 74 0d 61 32 34 45 |nitDocum|ent.a24E|
|00000270| 2c 49 6e 69 74 44 6f 63 | 75 6d 65 6e 74 53 69 7a |,InitDoc|umentSiz|
|00000280| 65 0d 61 32 36 45 2c 4e | 65 77 44 6f 63 75 6d 65 |e.a26E,N|ewDocume|
|00000290| 6e 74 0d 00 16 00 01 00 | 00 00 00 00 10 00 0c 00 |nt......|........|
|000002a0| 01 00 00 00 00 00 00 00 | 00 00 00 00 06 00 00 00 |........|........|
|000002b0| 00 11 a0 00 00 09 70 00 | 00 11 a0 00 00 00 00 00 |......p.|........|
|000002c0| 00 75 30 02 6b 01 ff 00 | 00 00 00 00 00 0f a8 00 |.u0.k...|........|
|000002d0| 00 00 00 4e 1f 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|000002e0| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 83 00 0b 40 0a | 62 6f 64 79 2f 31 39 39 |......@.|body/199|
|00000300| 39 39 00 06 4d 6f 6e 61 | 63 6f 00 10 be 4f 53 45 |99..Mona|co...OSE|
|00000310| 72 72 20 4e 65 77 44 6f | 63 75 6d 65 6e 74 28 46 |rr NewDo|cument(F|
|00000320| 69 6c 65 52 65 63 48 6e | 64 6c 20 2a 72 65 74 75 |ileRecHn|dl *retu|
|00000330| 72 6e 48 6e 64 6c 2c 20 | 4f 53 54 79 70 65 20 73 |rnHndl, |OSType s|
|00000340| 66 74 79 70 65 2c 20 42 | 6f 6f 6c 65 61 6e 20 69 |ftype, B|oolean i|
|00000350| 6e 63 54 69 74 6c 65 4e | 75 6d 29 3b 0d 0d 49 4e |ncTitleN|um);..IN|
|00000360| 50 55 54 3a 20 20 73 66 | 74 79 70 65 20 20 20 20 |PUT: sf|type |
|00000370| 20 20 20 20 20 20 54 68 | 65 20 4f 53 54 79 70 65 | Th|e OSType|
|00000380| 20 6f 66 20 74 68 65 20 | 64 65 73 69 72 65 64 20 | of the |desired |
|00000390| 64 6f 63 75 6d 65 6e 74 | 2e 0d 20 20 20 20 20 20 |document|.. |
|000003a0| 20 20 69 6e 63 54 69 74 | 6c 65 4e 75 6d 20 20 20 | incTit|leNum |
|000003b0| 20 20 50 61 73 73 20 69 | 6e 20 74 72 75 65 20 69 | Pass i|n true i|
|000003c0| 66 20 79 6f 75 20 77 61 | 6e 74 20 74 68 65 20 64 |f you wa|nt the d|
|000003d0| 6f 63 75 6d 65 6e 74 20 | 6e 75 6d 62 65 72 20 77 |ocument |number w|
|000003e0| 68 69 63 68 20 69 73 0d | 20 20 20 20 20 20 20 20 |hich is.| |
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000400| 28 6f 70 74 69 6f 6e 61 | 6c 6c 79 29 20 61 70 70 |(optiona|lly) app|
|00000410| 65 6e 64 65 64 20 74 6f | 20 74 68 65 20 74 69 74 |ended to| the tit|
|00000420| 6c 65 20 69 6e 63 72 65 | 6d 65 6e 74 65 64 2e 0d |le incre|mented..|
|00000430| 4f 55 54 50 55 54 3a 20 | 72 65 74 75 72 6e 48 6e |OUTPUT: |returnHn|
|00000440| 64 6c 20 20 20 20 20 20 | 54 68 65 20 66 72 48 6e |dl |The frHn|
|00000450| 64 6c 20 63 72 65 61 74 | 65 64 20 69 73 20 72 65 |dl creat|ed is re|
|00000460| 74 75 72 6e 65 64 20 68 | 65 72 65 2e 0d 20 20 20 |turned h|ere.. |
|00000470| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000480| 20 20 20 20 20 4e 6f 74 | 65 20 74 68 61 74 20 74 | Not|e that t|
|00000490| 68 65 72 65 20 61 72 65 | 20 74 77 6f 20 73 70 65 |here are| two spe|
|000004a0| 63 69 61 6c 20 63 61 73 | 65 73 20 74 68 61 74 20 |cial cas|es that |
|000004b0| 79 6f 75 20 63 61 6e 20 | 63 61 6c 6c 0d 20 20 20 |you can |call. |
|000004c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000004d0| 20 20 20 20 20 74 68 69 | 73 20 66 75 6e 63 74 69 | thi|s functi|
|000004e0| 6f 6e 2e 20 20 54 68 65 | 20 70 75 72 70 6f 73 65 |on. The| purpose|
|000004f0| 20 66 6f 72 20 62 6f 74 | 68 20 69 73 20 74 6f 20 | for bot|h is to |
|00000500| 63 68 61 6e 67 65 0d 20 | 20 20 20 20 20 20 20 20 |change. | |
|00000510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 74 | | t|
|00000520| 68 65 20 75 6e 74 69 74 | 6c 65 64 43 6f 75 6e 74 |he untit|ledCount|
|00000530| 20 76 61 6c 75 65 2e 20 | 20 49 66 20 79 6f 75 20 | value. | If you |
|00000540| 70 61 73 73 20 69 6e 20 | 61 6e 20 73 66 74 79 70 |pass in |an sftyp|
|00000550| 65 20 6f 66 20 30 2c 0d | 20 20 20 20 20 20 20 20 |e of 0,.| |
|00000560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000570| 74 68 65 6e 20 74 68 65 | 20 66 72 48 6e 64 6c 20 |then the| frHndl |
|00000580| 76 61 6c 75 65 20 69 73 | 20 75 73 65 64 20 61 73 |value is| used as|
|00000590| 20 61 6e 20 69 6e 64 69 | 63 61 74 6f 72 20 61 73 | an indi|cator as|
|000005a0| 20 74 6f 20 77 68 61 74 | 0d 20 20 20 20 20 20 20 | to what|. |
|000005b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005c0| 20 74 6f 20 64 6f 20 77 | 69 74 68 20 74 68 65 20 | to do w|ith the |
|000005d0| 75 6e 74 69 74 6c 65 64 | 43 6f 75 6e 74 20 76 61 |untitled|Count va|
|000005e0| 6c 75 65 2e 20 20 49 66 | 20 79 6f 75 20 70 61 73 |lue. If| you pas|
|000005f0| 73 20 69 6e 20 30 0d 20 | 20 20 20 20 20 20 20 20 |s in 0. | |
|00000600| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 66 | | f|
|00000610| 6f 72 20 74 68 65 20 66 | 72 48 6e 64 6c 20 76 61 |or the f|rHndl va|
|00000620| 6c 75 65 2c 20 75 6e 74 | 69 74 6c 65 64 43 6f 75 |lue, unt|itledCou|
|00000630| 6e 74 20 69 73 20 72 65 | 73 65 74 20 74 6f 20 30 |nt is re|set to 0|
|00000640| 2e 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000650| 20 20 20 20 20 20 20 20 | 20 20 49 66 20 79 6f 75 | | If you|
|00000660| 20 70 61 73 73 20 69 6e | 20 61 20 2d 31 2c 20 75 | pass in| a -1, u|
|00000670| 6e 74 69 74 6c 65 64 43 | 6f 75 6e 74 20 69 73 20 |ntitledC|ount is |
|00000680| 64 65 63 72 65 6d 65 6e | 74 65 64 2e 0d 52 45 53 |decremen|ted..RES|
|00000690| 55 4c 54 3a 20 4f 53 45 | 72 72 20 20 20 20 20 20 |ULT: OSE|rr |
|000006a0| 20 20 20 20 20 49 66 20 | 61 6e 20 65 72 72 6f 72 | If |an error|
|000006b0| 20 69 73 20 72 65 74 75 | 72 6e 65 64 2c 20 74 68 | is retu|rned, th|
|000006c0| 65 6e 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 72 |en there| is no r|
|000006d0| 65 74 75 72 6e 48 6e 64 | 6c 2e 0d 0d 54 68 69 73 |eturnHnd|l...This|
|000006e0| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 63 61 6c | functio|n is cal|
|000006f0| 6c 65 64 20 62 79 20 74 | 68 65 20 61 70 70 6c 69 |led by t|he appli|
|00000700| 63 61 74 69 6f 6e 2c 20 | 64 69 72 65 63 74 6c 79 |cation, |directly|
|00000710| 20 6f 72 20 69 6e 64 69 | 72 65 63 74 6c 79 2e 20 | or indi|rectly. |
|00000720| 20 45 76 65 6e 20 69 66 | 20 79 6f 75 0d 68 61 76 | Even if| you.hav|
|00000730| 65 20 75 73 65 64 20 74 | 68 65 20 61 70 70 6c 69 |e used t|he appli|
|00000740| 63 61 74 69 6f 6e 20 65 | 64 69 74 6f 72 20 74 6f |cation e|ditor to|
|00000750| 20 73 65 74 20 75 70 20 | 41 70 70 57 61 6e 6e 61 | set up |AppWanna|
|00000760| 62 65 20 74 6f 20 61 75 | 74 6f 6d 61 74 69 63 61 |be to au|tomatica|
|00000770| 6c 6c 79 20 6f 70 65 6e | 0d 64 6f 63 75 6d 65 6e |lly open|.documen|
|00000780| 74 20 77 69 6e 64 6f 77 | 73 20 28 66 69 6c 65 2d |t window|s (file-|
|00000790| 62 61 73 65 64 20 6f 72 | 20 6e 6f 74 29 2c 20 74 |based or| not), t|
|000007a0| 68 69 73 20 67 65 74 73 | 20 63 61 6c 6c 65 64 2e |his gets| called.|
|000007b0| 0d 0d 4e 65 77 44 6f 63 | 75 6d 65 6e 74 20 66 69 |..NewDoc|ument fi|
|000007c0| 72 73 74 20 63 61 6c 6c | 73 20 74 68 65 20 41 70 |rst call|s the Ap|
|000007d0| 70 57 61 6e 6e 61 62 65 | 20 66 75 6e 63 74 69 6f |pWannabe| functio|
|000007e0| 6e 20 49 6e 69 74 44 6f | 63 75 6d 65 6e 74 53 69 |n InitDo|cumentSi|
|000007f0| 7a 65 20 74 6f 20 61 6c | 6c 6f 77 20 74 68 65 0d |ze to al|low the.|
|00000800| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 64 |applicat|ion to d|
|00000810| 65 63 6c 61 72 65 20 68 | 6f 77 20 6c 61 72 67 65 |eclare h|ow large|
|00000820| 20 74 68 65 20 66 69 6c | 65 20 72 65 66 65 72 65 | the fil|e refere|
|00000830| 6e 63 65 20 68 61 6e 64 | 6c 65 20 73 68 6f 75 6c |nce hand|le shoul|
|00000840| 64 20 62 65 2e 20 20 49 | 74 20 74 68 65 6e 0d 63 |d be. I|t then.c|
|00000850| 72 65 61 74 65 73 20 74 | 68 65 20 66 72 48 6e 64 |reates t|he frHnd|
|00000860| 6c 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 72 |l based |on the r|
|00000870| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 6f 66 20 49 |eturn va|lue of I|
|00000880| 6e 69 74 44 6f 63 75 6d | 65 6e 74 53 69 7a 65 0d |nitDocum|entSize.|
|00000890| 28 76 69 61 20 4e 65 77 | 48 61 6e 64 6c 65 43 6c |(via New|HandleCl|
|000008a0| 65 61 72 29 2c 20 61 6e | 64 20 74 68 65 6e 20 69 |ear), an|d then i|
|000008b0| 6e 69 74 69 61 6c 69 7a | 65 73 20 74 68 65 20 66 |nitializ|es the f|
|000008c0| 69 65 6c 64 73 20 74 6f | 20 74 68 65 69 72 20 64 |ields to| their d|
|000008d0| 65 66 61 75 6c 74 20 76 | 61 6c 75 65 73 2e 0d 0d |efault v|alues...|
|000008e0| 4e 65 77 44 6f 63 75 6d | 65 6e 74 20 74 68 65 6e |NewDocum|ent then|
|000008f0| 20 63 61 6c 6c 73 20 61 | 6e 6f 74 68 65 72 20 41 | calls a|nother A|
|00000900| 70 70 57 61 6e 6e 61 62 | 65 20 66 75 6e 63 74 69 |ppWannab|e functi|
|00000910| 6f 6e 20 63 61 6c 6c 65 | 64 20 49 6e 69 74 44 6f |on calle|d InitDo|
|00000920| 63 75 6d 65 6e 74 2e 20 | 20 54 68 65 0d 70 75 72 |cument. | The.pur|
|00000930| 70 6f 73 65 20 6f 66 20 | 74 68 69 73 20 41 70 70 |pose of |this App|
|00000940| 57 61 6e 6e 61 62 65 20 | 66 75 6e 63 74 69 6f 6e |Wannabe |function|
|00000950| 20 69 73 20 74 6f 20 63 | 68 61 6e 67 65 20 61 6e | is to c|hange an|
|00000960| 79 20 6f 66 20 74 68 65 | 20 64 65 66 61 75 6c 74 |y of the| default|
|00000970| 73 20 74 68 61 74 20 61 | 72 65 6e d5 74 0d 61 70 |s that a|ren.t.ap|
|00000980| 70 72 6f 70 72 69 61 74 | 65 20 66 6f 72 20 74 68 |propriat|e for th|
|00000990| 65 20 64 6f 63 75 6d 65 | 6e 74 2e 0d 0d 4e 6f 74 |e docume|nt...Not|
|000009a0| 65 20 74 68 61 74 20 74 | 68 65 20 74 79 70 69 63 |e that t|he typic|
|000009b0| 61 6c 20 77 61 79 20 74 | 6f 20 63 72 65 61 74 65 |al way t|o create|
|000009c0| 20 64 6f 63 75 6d 65 6e | 74 20 77 69 74 68 20 41 | documen|t with A|
|000009d0| 70 70 73 54 6f 47 6f 20 | 28 62 65 63 61 75 73 65 |ppsToGo |(because|
|000009e0| 20 69 74 20 69 73 20 74 | 68 65 0d 65 61 73 69 65 | it is t|he.easie|
|000009f0| 73 74 29 20 69 73 20 74 | 6f 20 63 72 65 61 74 65 |st) is t|o create|
|00000a00| 20 74 68 65 6d 20 77 69 | 74 68 20 74 68 65 20 61 | them wi|th the a|
|00000a10| 70 70 6c 69 63 61 74 69 | 6f 6e 20 65 64 69 74 6f |pplicati|on edito|
|00000a20| 72 2e 20 20 4e 65 77 44 | 6f 63 75 6d 65 6e 74 2c |r. NewD|ocument,|
|00000a30| 20 66 6f 72 20 62 61 63 | 6b 77 61 72 64 73 0d 63 | for bac|kwards.c|
|00000a40| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 6e 6f 74 |ompatibi|lity not|
|00000a50| 65 73 20 69 66 20 74 68 | 65 72 65 20 69 73 20 61 |es if th|ere is a|
|00000a60| 6e 20 41 70 70 73 54 6f | 47 6f 20 61 70 70 6c 69 |n AppsTo|Go appli|
|00000a70| 63 61 74 69 6f 6e 20 65 | 64 69 74 6f 72 20 65 6e |cation e|ditor en|
|00000a80| 74 72 79 20 66 6f 72 20 | 74 68 69 73 0d 4f 53 54 |try for |this.OST|
|00000a90| 79 70 65 2e 20 20 49 66 | 20 73 6f 2c 20 74 68 65 |ype. If| so, the|
|00000aa0| 6e 20 74 68 65 72 65 20 | 69 73 20 61 20 6c 6f 74 |n there |is a lot|
|00000ab0| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00000ac0| 6e 20 64 69 72 65 63 74 | 6c 79 20 61 76 61 69 6c |n direct|ly avail|
|00000ad0| 61 62 6c 65 20 66 6f 72 | 20 74 68 69 73 0d 64 6f |able for| this.do|
|00000ae0| 63 75 6d 65 6e 74 2e 20 | 20 49 66 20 74 68 65 20 |cument. | If the |
|00000af0| 64 6f 63 75 6d 65 6e 74 | 20 62 65 69 6e 67 20 63 |document| being c|
|00000b00| 72 65 61 74 65 64 20 77 | 61 73 20 64 65 73 63 72 |reated w|as descr|
|00000b10| 69 62 65 64 20 77 69 74 | 68 20 74 68 65 20 65 64 |ibed wit|h the ed|
|00000b20| 69 74 6f 72 2c 20 74 68 | 65 6e 20 72 65 61 64 0d |itor, th|en read.|
|00000b30| 70 61 72 74 20 31 20 62 | 65 6c 6f 77 2e 20 20 49 |part 1 b|elow. I|
|00000b40| 66 20 79 6f 75 20 61 72 | 65 20 63 61 6c 6c 69 6e |f you ar|e callin|
|00000b50| 67 20 4e 65 77 44 6f 63 | 75 6d 65 6e 74 20 64 69 |g NewDoc|ument di|
|00000b60| 72 65 63 74 6c 79 20 77 | 69 74 68 6f 75 74 20 68 |rectly w|ithout h|
|00000b70| 61 76 69 6e 67 20 64 65 | 73 63 72 69 62 65 64 0d |aving de|scribed.|
|00000b80| 74 68 69 73 20 4f 53 54 | 79 70 65 20 77 69 74 68 |this OST|ype with|
|00000b90| 20 74 68 65 20 41 70 70 | 73 54 6f 47 6f 20 61 70 | the App|sToGo ap|
|00000ba0| 70 6c 69 63 61 74 69 6f | 6e 20 65 64 69 74 6f 72 |plicatio|n editor|
|00000bb0| 2c 20 74 68 65 6e 20 72 | 65 61 64 20 70 61 72 74 |, then r|ead part|
|00000bc0| 20 32 20 62 65 6c 6f 77 | 2e 0d 28 54 68 65 20 70 | 2 below|..(The p|
|00000bd0| 61 72 74 20 32 20 74 65 | 63 68 6e 69 71 75 65 20 |art 2 te|chnique |
|00000be0| 69 73 20 72 65 61 6c 6c | 79 20 6f 6e 6c 79 20 66 |is reall|y only f|
|00000bf0| 6f 72 20 62 61 63 6b 77 | 61 72 64 73 20 63 6f 6d |or backw|ards com|
|00000c00| 70 61 74 69 62 69 6c 69 | 74 79 2e 29 0d 0d 50 41 |patibili|ty.)..PA|
|00000c10| 52 54 20 31 3a 20 54 68 | 65 20 64 6f 63 75 6d 65 |RT 1: Th|e docume|
|00000c20| 6e 74 20 74 69 74 6c 65 | 20 69 73 20 65 6e 74 65 |nt title| is ente|
|00000c30| 72 65 64 20 69 6e 20 74 | 68 65 20 41 70 70 73 54 |red in t|he AppsT|
|00000c40| 6f 47 6f 20 65 64 69 74 | 6f 72 2e 20 20 49 66 20 |oGo edit|or. If |
|00000c50| 74 68 65 72 65 20 69 73 | 20 6e 6f 0d 20 20 20 20 |there is| no. |
|00000c60| 20 20 20 20 74 69 74 6c | 65 20 65 6e 74 65 72 65 | titl|e entere|
|00000c70| 64 20 74 68 65 72 65 2c | 20 6f 72 20 69 66 20 74 |d there,| or if t|
|00000c80| 68 65 20 74 69 74 6c 65 | 20 73 74 61 72 74 73 20 |he title| starts |
|00000c90| 77 69 74 68 20 61 20 73 | 70 61 63 65 2c 20 74 68 |with a s|pace, th|
|00000ca0| 65 6e 20 6e 6f 20 64 65 | 66 61 75 6c 74 0d 20 20 |en no de|fault. |
|00000cb0| 20 20 20 20 20 20 74 69 | 74 6c 65 20 69 73 20 70 | ti|tle is p|
|00000cc0| 6c 61 63 65 64 20 69 6e | 20 74 68 65 20 64 6f 63 |laced in| the doc|
|00000cd0| 75 6d 65 6e 74 20 72 65 | 66 65 72 65 6e 63 65 2e |ument re|ference.|
|00000ce0| 20 20 28 57 68 65 6e 20 | 61 20 77 69 6e 64 6f 77 | (When |a window|
|00000cf0| 20 69 73 20 63 72 65 61 | 74 65 64 2c 20 69 66 0d | is crea|ted, if.|
|00000d00| 20 20 20 20 20 20 20 20 | 74 68 65 72 65 20 69 73 | |there is|
|00000d10| 20 6e 6f 20 64 6f 63 75 | 6d 65 6e 74 20 6e 61 6d | no docu|ment nam|
|00000d20| 65 2c 20 74 68 65 6e 20 | 74 68 65 20 27 57 49 4e |e, then |the 'WIN|
|00000d30| 44 27 20 72 65 73 6f 75 | 72 63 65 20 74 69 74 6c |D' resou|rce titl|
|00000d40| 65 20 69 73 20 75 73 65 | 64 20 61 73 2d 69 73 0d |e is use|d as-is.|
|00000d50| 20 20 20 20 20 20 20 20 | 69 6e 73 74 65 61 64 2e | |instead.|
|00000d60| 29 0d 0d 20 20 20 20 20 | 20 20 20 49 66 20 74 72 |).. | If tr|
|00000d70| 75 65 20 69 73 20 70 61 | 73 73 65 64 20 69 6e 20 |ue is pa|ssed in |
|00000d80| 66 6f 72 20 69 6e 63 54 | 69 74 6c 65 4e 75 6d 2c |for incT|itleNum,|
|00000d90| 20 74 68 65 6e 20 69 66 | 20 61 20 76 61 6c 69 64 | then if| a valid|
|00000da0| 20 74 69 74 6c 65 20 77 | 61 73 20 65 6e 74 65 72 | title w|as enter|
|00000db0| 65 64 20 69 6e 0d 20 20 | 20 20 20 20 20 20 74 68 |ed in. | th|
|00000dc0| 65 20 41 70 70 73 54 6f | 47 6f 20 65 64 69 74 6f |e AppsTo|Go edito|
|00000dd0| 72 2c 20 74 68 65 6e 20 | 75 6e 74 69 74 6c 65 64 |r, then |untitled|
|00000de0| 43 6f 75 6e 74 20 69 73 | 20 69 6e 63 72 65 6d 65 |Count is| increme|
|00000df0| 6e 74 65 64 2c 20 61 6e | 64 20 74 68 65 6e 20 61 |nted, an|d then a|
|00000e00| 70 70 65 6e 64 65 64 0d | 20 20 20 20 20 20 20 20 |ppended.| |
|00000e10| 74 6f 20 74 68 65 20 74 | 69 74 6c 65 2e 0d 0d 50 |to the t|itle...P|
|00000e20| 41 52 54 20 32 3a 20 4e | 65 77 20 64 6f 63 75 6d |ART 2: N|ew docum|
|00000e30| 65 6e 74 73 20 77 69 6c | 6c 20 62 65 20 63 72 65 |ents wil|l be cre|
|00000e40| 61 74 65 64 20 77 69 74 | 68 20 61 20 64 65 66 61 |ated wit|h a defa|
|00000e50| 75 6c 74 20 74 69 74 6c | 65 2e 20 20 54 68 69 73 |ult titl|e. This|
|00000e60| 20 74 69 74 6c 65 20 69 | 73 20 63 72 65 61 74 65 | title i|s create|
|00000e70| 64 0d 20 20 20 20 20 20 | 20 20 62 79 20 61 70 70 |d. | by app|
|00000e80| 65 6e 64 69 6e 67 20 61 | 20 6e 75 6d 62 65 72 20 |ending a| number |
|00000e90| 74 6f 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |to the c|orrespon|
|00000ea0| 64 69 6e 67 20 53 54 52 | 23 20 69 6e 64 69 76 69 |ding STR|# indivi|
|00000eb0| 64 75 61 6c 20 73 74 72 | 69 6e 67 2e 20 20 54 68 |dual str|ing. Th|
|00000ec0| 65 0d 20 20 20 20 20 20 | 20 20 53 54 52 23 20 72 |e. | STR# r|
|00000ed0| 65 73 6f 75 72 63 65 20 | 49 44 20 23 32 35 39 20 |esource |ID #259 |
|00000ee0| 68 6f 6c 64 73 20 74 68 | 65 20 64 65 66 61 75 6c |holds th|e defaul|
|00000ef0| 74 20 74 65 78 74 20 66 | 6f 72 20 74 68 65 20 77 |t text f|or the w|
|00000f00| 69 6e 64 6f 77 20 74 69 | 74 6c 65 73 2e 20 20 57 |indow ti|tles. W|
|00000f10| 68 69 63 68 0d 20 20 20 | 20 20 20 20 20 73 74 72 |hich. | str|
|00000f20| 69 6e 67 20 6e 75 6d 62 | 65 72 20 69 73 20 64 65 |ing numb|er is de|
|00000f30| 74 65 72 6d 69 6e 65 64 | 20 62 79 20 74 68 65 20 |termined| by the |
|00000f40| 4f 53 54 79 70 65 20 61 | 72 72 61 79 20 67 54 79 |OSType a|rray gTy|
|00000f50| 70 65 4c 69 73 74 2e 20 | 20 67 54 79 70 65 4c 69 |peList. | gTypeLi|
|00000f60| 73 74 0d 20 20 20 20 20 | 20 20 20 63 6f 6e 74 61 |st. | conta|
|00000f70| 69 6e 73 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 66 |ins all |of the f|
|00000f80| 69 6c 65 20 74 79 70 65 | 73 20 74 68 61 74 20 63 |ile type|s that c|
|00000f90| 61 6e 20 62 65 20 6f 70 | 65 6e 65 64 20 62 79 20 |an be op|ened by |
|00000fa0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2e |the appl|ication.|
|00000fb0| 20 20 54 68 65 0d 20 20 | 20 20 20 20 20 20 6c 69 | The. | li|
|00000fc0| 73 74 20 69 73 20 77 61 | 6c 6b 65 64 2c 20 61 6e |st is wa|lked, an|
|00000fd0| 64 20 74 68 65 20 6c 6f | 63 61 74 69 6f 6e 20 69 |d the lo|cation i|
|00000fe0| 6e 20 74 68 65 20 67 54 | 79 70 65 4c 69 73 74 20 |n the gT|ypeList |
|00000ff0| 61 72 72 61 79 20 74 68 | 61 74 20 68 6f 6c 64 73 |array th|at holds|
|00001000| 20 74 68 65 0d 20 20 20 | 20 20 20 20 20 63 6f 72 | the. | cor|
|00001010| 72 65 63 74 20 66 69 6c | 65 20 74 79 70 65 20 69 |rect fil|e type i|
|00001020| 73 20 75 73 65 64 20 61 | 73 20 61 6e 20 69 6e 64 |s used a|s an ind|
|00001030| 65 78 20 69 6e 74 6f 20 | 74 68 65 20 53 54 52 23 |ex into |the STR#|
|00001040| 20 72 65 73 6f 75 72 63 | 65 2e 20 20 49 66 20 74 | resourc|e. If t|
|00001050| 68 65 20 66 69 6c 65 0d | 20 20 20 20 20 20 20 20 |he file.| |
|00001060| 74 79 70 65 20 69 73 6e | d5 74 20 66 6f 75 6e 64 |type isn|.t found|
|00001070| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 2c 20 74 68 | in the |list, th|
|00001080| 65 6e 20 74 68 65 20 66 | 69 72 73 74 20 73 74 72 |en the f|irst str|
|00001090| 69 6e 67 20 69 6e 20 74 | 68 65 20 53 54 52 23 20 |ing in t|he STR# |
|000010a0| 72 65 73 6f 75 72 63 65 | 0d 20 20 20 20 20 20 20 |resource|. |
|000010b0| 20 69 73 20 75 73 65 64 | 2e 0d 0d 20 20 20 20 20 | is used|... |
|000010c0| 20 20 20 54 68 65 20 6e | 65 78 74 20 67 72 65 61 | The n|ext grea|
|000010d0| 74 65 73 74 20 69 6e 74 | 65 67 65 72 20 69 73 20 |test int|eger is |
|000010e0| 61 70 70 65 6e 64 65 64 | 20 74 6f 20 74 68 65 20 |appended| to the |
|000010f0| 65 6e 64 20 6f 66 20 74 | 68 65 20 69 6e 64 69 76 |end of t|he indiv|
|00001100| 69 64 75 61 6c 20 73 74 | 72 69 6e 67 0d 20 20 20 |idual st|ring. |
|00001110| 20 20 20 20 20 73 65 6c | 65 63 74 65 64 20 66 6f | sel|ected fo|
|00001120| 72 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 2e 20 |r the do|cument. |
|00001130| 20 49 66 20 69 6e 63 54 | 69 74 6c 65 4e 75 6d 20 | If incT|itleNum |
|00001140| 69 73 20 74 72 75 65 2c | 20 74 68 65 6e 20 74 68 |is true,| then th|
|00001150| 65 20 67 6c 6f 62 61 6c | 0d 20 20 20 20 20 20 20 |e global|. |
|00001160| 20 69 6e 74 65 67 65 72 | 20 69 73 20 66 69 72 73 | integer| is firs|
|00001170| 74 20 69 6e 63 72 65 6d | 65 6e 74 65 64 20 70 72 |t increm|ented pr|
|00001180| 69 6f 72 20 74 6f 20 61 | 70 70 65 6e 64 69 6e 67 |ior to a|ppending|
|00001190| 20 74 68 65 20 6e 75 6d | 62 65 72 2e 0d 0d 20 20 | the num|ber... |
|000011a0| 20 20 20 20 20 20 49 66 | 20 79 6f 75 20 77 61 6e | If| you wan|
|000011b0| 74 20 74 6f 20 63 72 65 | 61 74 65 20 61 20 64 6f |t to cre|ate a do|
|000011c0| 63 75 6d 65 6e 74 20 77 | 69 74 68 20 74 68 65 20 |cument w|ith the |
|000011d0| 74 69 74 6c 65 20 66 6f | 75 6e 64 20 69 6e 20 74 |title fo|und in t|
|000011e0| 68 65 20 27 57 49 4e 44 | 27 0d 20 20 20 20 20 20 |he 'WIND|'. |
|000011f0| 20 20 72 65 73 6f 75 72 | 63 65 2c 20 66 69 72 73 | resour|ce, firs|
|00001200| 74 20 63 61 6c 6c 20 4e | 65 77 44 6f 63 75 6d 65 |t call N|ewDocume|
|00001210| 6e 74 2e 20 20 41 66 74 | 65 72 20 79 6f 75 20 68 |nt. Aft|er you h|
|00001220| 61 76 65 20 74 68 65 20 | 66 72 48 6e 64 6c 20 66 |ave the |frHndl f|
|00001230| 6f 72 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 64 |or the. | d|
|00001240| 6f 63 75 6d 65 6e 74 2c | 20 73 65 74 20 74 68 65 |ocument,| set the|
|00001250| 20 66 69 6c 65 20 6e 61 | 6d 65 20 69 6e 20 74 68 | file na|me in th|
|00001260| 65 20 28 2a 66 72 48 6e | 64 6c 29 2d 3e 66 69 6c |e (*frHn|dl)->fil|
|00001270| 65 53 74 61 74 65 2e 66 | 73 73 2e 6e 61 6d 65 20 |eState.f|ss.name |
|00001280| 66 69 65 6c 64 20 74 6f | 0d 20 20 20 20 20 20 20 |field to|. |
|00001290| 20 61 6e 20 65 6d 70 74 | 79 20 73 74 72 69 6e 67 | an empt|y string|
|000012a0| 2e 20 20 57 68 65 6e 20 | 74 68 65 20 77 69 6e 64 |. When |the wind|
|000012b0| 6f 77 20 69 73 20 6f 70 | 65 6e 65 64 20 66 6f 72 |ow is op|ened for|
|000012c0| 20 74 68 69 73 20 64 6f | 63 75 6d 65 6e 74 2c 20 | this do|cument, |
|000012d0| 69 66 20 74 68 69 73 0d | 20 20 20 20 20 20 20 20 |if this.| |
|000012e0| 6e 61 6d 65 20 69 73 20 | 61 6e 20 65 6d 70 74 79 |name is |an empty|
|000012f0| 20 73 74 72 69 6e 67 2c | 20 69 74 20 74 69 74 6c | string,| it titl|
|00001300| 65 73 20 74 68 65 20 77 | 69 6e 64 6f 77 20 61 63 |es the w|indow ac|
|00001310| 63 6f 72 64 69 6e 67 20 | 74 6f 20 77 68 61 74 20 |cording |to what |
|00001320| 69 73 20 66 6f 75 6e 64 | 0d 20 20 20 20 20 20 20 |is found|. |
|00001330| 20 69 6e 20 74 68 65 20 | 27 57 49 4e 44 27 20 72 | in the |'WIND' r|
|00001340| 65 73 6f 75 72 63 65 20 | 66 6f 72 20 74 68 61 74 |esource |for that|
|00001350| 20 77 69 6e 64 6f 77 2e | 20 20 49 66 20 74 68 69 | window.| If thi|
|00001360| 73 20 66 69 65 6c 64 20 | 69 73 20 6e 6f 74 20 61 |s field |is not a|
|00001370| 6e 20 65 6d 70 74 79 0d | 20 20 20 20 20 20 20 20 |n empty.| |
|00001380| 73 74 72 69 6e 67 2c 20 | 74 68 65 6e 20 74 68 65 |string, |then the|
|00001390| 20 27 57 49 4e 44 27 20 | 74 69 74 6c 65 20 69 73 | 'WIND' |title is|
|000013a0| 20 6f 76 65 72 72 69 64 | 64 65 6e 2c 20 61 6e 64 | overrid|den, and|
|000013b0| 20 74 68 65 20 66 69 6c | 65 20 6e 61 6d 65 20 69 | the fil|e name i|
|000013c0| 73 20 75 73 65 64 2e 20 | 0d 0d 0d 00 8e 00 07 00 |s used. |........|
|000013d0| 00 00 00 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 04 d5 00 | 0b 00 09 00 04 05 00 00 |........|........|
|000013f0| 09 00 00 00 00 00 00 00 | 00 04 e5 00 0b 00 09 00 |........|........|
|00001400| 04 00 00 00 09 00 00 00 | 00 00 00 00 00 05 72 00 |........|......r.|
|00001410| 0b 00 09 00 04 05 00 00 | 09 00 00 00 00 00 00 00 |........|........|
|00001420| 00 05 82 00 0b 00 09 00 | 04 00 00 00 09 00 00 00 |........|........|
|00001430| 00 00 00 00 00 06 0d 00 | 0b 00 09 00 04 05 00 00 |........|........|
|00001440| 09 00 00 00 00 00 00 00 | 00 06 19 00 0b 00 09 00 |........|........|
|00001450| 04 00 00 00 09 00 00 00 | 00 00 00 |........|... |
+--------+-------------------------+-------------------------+--------+--------+